#include "Stack.h"

void TestStack1()
{
	Stack SL;
	StackInit(&SL);
	StackPush(&SL, 1);
	StackPush(&SL, 2);
	StackPush(&SL, 3);
	StackPush(&SL, 4);
	StackPush(&SL, 5);
	StackPush(&SL, 6);
	int n = StackSize(&SL);
	for (int i=0;i<n;i++)
	{
		printf("%d ", SL.data[i]);
	}
	StackPop(&SL);
	StackPop(&SL);
	StackPop(&SL);
	n = StackSize(&SL);
	printf("\n");
	for (int i=0;i<n;i++)
	{
		printf("%d ", SL.data[i]);
	}
	StackDestroy(&SL);
}

int main()
{
	TestStack1();
	return 0;
}